MySQL does not lock anything at all, in fact, it does not even have those features.
"The error was in php though, it would claim I had an invalid SQL resource.."
That was due to a bad query, nothing at all to do with locking, you should print mysql_error() and see what the error was.