This is a Mercruiser?.......
If it won't come out of gear under load, it is most likely the shift interrupt switch that has a problem.....
First thing to do is test the switch......
If you can, try to be more desciptive of your problem/symptom....
Does it do the same in reverse?.....
Friction from the gear lube can make it spin slightly while out of gear as well.....